/*
** do_c.c for doc in /home/deubel_j//colle
** 
** Made by james deubelbeiss
** Login   <deubel_j@epitech.net>
** 
** Started on  Mon Apr 18 20:49:52 2011 james deubelbeiss
** Last update Mon Apr 18 22:34:04 2011 james deubelbeiss
*/

#include <stdlib.h>
#include "my_mastermind.h"

t_args	*do_c(t_args *ar, char **av, int i)
{
  char	*code;
  int	j;

  j = 0;
  if (av[i + 1] == NULL)
    return (ar);
  code = av[i + 1];
  while (code[j])
    {
      ar->code[j] = code[j];
      j++;
    }
  ar->code[j + 1] = '\0';
  ar->c = 42;
  return (ar);
}
